import re

pattern = r'\d\.\d+'
s = 'I study Python 3.12 everyday'
match = re.match(pattern, s, re.I)
print(match)

p2 = '黑客|破解|反爬'
s = '我想学习Python，想破解一些VIP视频，Python可以实现无底线反爬吗'
new_s = re.sub(p2, 'XXX', s)
print(new_s)

s3 = 'http://www.baicu.com/s?wd=chl&rsv=1'
p3 = '[?|&]'
lst = re.split(p3, s3)
print(lst)

p4 = r'13[4-9]\d{8}'
lst=['13809876543', '15109876543', '13278965439']
for item in lst:
    match = re.match(p4, item)
    if match != None:
        print(match.group())
